package com.mzwise.tunnel.wx.miniapp.immediateDelivery.request;


import cn.binarywang.wx.miniapp.bean.express.request.WxMaExpressOrderShop;
import cn.binarywang.wx.miniapp.util.json.WxMaGsonBuilder;
import com.google.gson.annotations.SerializedName;
import lombok.Data;

import java.io.Serializable;

/**
 * <pre>
 * 即时配送下单请求对象
 * </pre>
 * @author wmf</a>
 * @since 2020-04-02
 */
@Data
public class WxMaImmediateDeliveryAddOrderRequest implements Serializable {

  private static final long serialVersionUID = -7538739003766268386L;

  @SerializedName("delivery_token")
  private String deliveryToken;

  @SerializedName("shopid")
  private String shopid;

  @SerializedName("shop_order_id")
  private String shopOrderId;

  @SerializedName("shop_no")
  private String shopNo;

  @SerializedName("delivery_sign")
  private String deliverySign;

  @SerializedName("delivery_id")
  private String deliveryId;

  @SerializedName("openid")
  private String openid;

  private WxMaImmediateDeliveryOrderPerson sender;

  private WxMaImmediateDeliveryOrderPerson receiver;

  private WxMaImmediateDeliveryOrderCargo cargo;

  @SerializedName("order_info")
  private WxMaImmediateDeliveryOrderInfo orderInfo;

  private WxMaExpressOrderShop shop;

  public String toJson() {
    return WxMaGsonBuilder.create().toJson(this);
  }
}
